package com.example.javaproject.datastructure.map;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.Map;

import javax.swing.tree.TreeNode;

/**
 * Description:   HashMap原理探索
 * <br/>Author:  tianjinyong
 * <br/>Date:    2020/7/1 11:01 AM
 */
public class HashMapDemo {

    private static HashMap<Integer, String> map = new HashMap<>(2, 0.75f);

    public static void main(String[] args) {
//        map.put(5, "c");
//
//        new Thread(() -> {
//            map.put(7, "b");
//        }, "thread1").start();
//
//        new Thread(() -> {
//            map.put(4, "a");
//        }, "thread2").start();
//
//        LinkedHashMap lm = new LinkedHashMap();
//        LinkedList

//        map.put(null,"1");
//        map.put(null,"2");
//
//        System.out.println(map.get(null));


        System.out.println( 1 << 30);

    }

    /**
     * node节点定义
     */
    public static void testHashMap() {
        Map<String, String> map = new HashMap<>();
        map.put("美团", "小美");
    }


    public static void testLinkedHashMap() {
        LinkedHashMap<String, String> lMap = new LinkedHashMap<>();
    }


}
